package com.lyf.lottery.enums;

import com.lyf.cache.redisson.IRedisDelayQueueExecutor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @author Lin
 * @date 2023/2/19
 */
@Slf4j
@Component
public class TestDelayQueueExecutor implements IRedisDelayQueueExecutor<String> {


    @Override
    public void execute(String data) {
        if (StringUtils.isEmpty(data)) {
            return;
        }
        log.info("收到延时队列数据：{}", data);
    }
}
